package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;
import com.lanchetech.entity.MerchantRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MerchantRoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MerchantRole record);

    int insert2(MerchantRole record);

    int insertSelective(MerchantRole record);

    MerchantRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MerchantRole record);

    int updateByPrimaryKey(MerchantRole record);

    List<MerchantRole> findAllPage(PageReq req);

    List<MerchantRole> findAll();

    MerchantRole findOneByName(@Param("name") String name);

    Long findMaxId();

    List<MerchantRole> findAllByIds(@Param("ids")List<Long> ids);



}